package com.grass.cropTradingCenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.grass.cropTradingCenter.common.PageResult;
import com.grass.cropTradingCenter.pojo.entity.Goods;
import com.grass.cropTradingCenter.pojo.entity.UserOrder;
import com.grass.cropTradingCenter.pojo.vo.shop.GoodsListVo;
import com.grass.cropTradingCenter.pojo.vo.shop.OrderListVo;

/**
 * @author zipan
 * @description 针对表【goods】的数据库操作Service
 * @createDate 2024-03-05 13:30:38
 */
public interface GoodsService extends IService<Goods> {

    PageResult<Goods> goodsList(GoodsListVo vo);

    void addOrUpdateGoods(Goods vo);

    PageResult<UserOrder> orderList(OrderListVo vo);

    void confirmFH(Integer id);

    void confirmTK(Integer id);

    Integer getGoodsNumByShopId(Integer shopId);
}
